﻿// 文件路径：AyuBookmark.Common/Interfaces/IMonitorService.cs
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;

namespace AyuBookmark.Common.Interfaces
{
    /// <summary>
    /// 监控服务接口
    /// </summary>
    public interface IMonitorService : IHostedService
    {
        /// <summary>
        /// 获取当前监控状态
        /// </summary>
        bool IsMonitoring { get; }

        /// <summary>
        /// 启动监控
        /// </summary>
        Task StartMonitoringAsync(CancellationToken cancellationToken = default);

        /// <summary>
        /// 停止监控
        /// </summary>
        Task StopMonitoringAsync(CancellationToken cancellationToken = default);
    }
}